
package com.hlkj.pay.app.merchant.ext.impl.alipay.dto;

import com.hlkj.framework.common.util.json.JsonUtils;

import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/09/26 11:23
 */
@Data
public class AlipayConfig {
    //appId
    private String appId;
    //私钥
    private String privateKey;
    //公钥
    private String publicKey;

    //分账名称
    private String accName;
    //分账账号
    private String accNo;
    //分账比例 默认 0.6 百分比
    private String accRate;


    /**
     * 应用公钥证书文件路径
     */
    private String appCertPath;
    /**
     * 支付宝公钥证书文件路径
     */
    private String alipayPublicCertPath;
    /**
     * 支付宝根证书文件路径
     */
    private String rootCertPath;


    public static void main(String[] args) {
        String json="{\"insCd\":\"08A9999999\",\"subInsCd\":null,\"rsaPrivateKey\":\"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJgAzD8fEvBHQTyxUEeK963mjziMWG7nxpi+pDMdtWiakc6xVhhbaipLaHo4wVI92A2wr3ptGQ1/YsASEHm3m2wGOpT2vrb2Ln/S7lz1ShjTKaT8U6rKgCdpQNHUuLhBQlpJer2mcYEzG/nGzcyalOCgXC/6CySiJCWJmPyR45bJAgMBAAECgYBHFfBvAKBBwIEQ2jeaDbKBIFcQcgoVa81jt5xgz178WXUg/awu3emLeBKXPh2i0YtN87hM/+J8fnt3KbuMwMItCsTD72XFXLM4FgzJ4555CUCXBf5/tcKpS2xT8qV8QDr8oLKA18sQxWp8BMPrNp0epmwun/gwgxoyQrJUB5YgZQJBAOiVXHiTnc3KwvIkdOEPmlfePFnkD4zzcv2UwTlHWgCyM/L8SCAFclXmSiJfKSZZS7o0kIeJJ6xe3Mf4/HSlhdMCQQCnTow+TnlEhDTPtWa+TUgzOys83Q/VLikqKmDzkWJ7I12+WX6AbxxEHLD+THn0JGrlvzTEIZyCe0sjQy4LzQNzAkEAr2SjfVJkuGJlrNENSwPHMugmvusbRwH3/38ET7udBdVdE6poga1Z0al+0njMwVypnNwy+eLWhkhrWmpLh3OjfQJAI3BV8JS6xzKh5SVtn/3Kv19XJ0tEIUnn2lCjvLQdAixZnQpj61ydxie1rggRBQ/5vLSlvq3H8zOelNeUF1fT1QJADNo+tkHVXLY9H2kdWFoYTvuLexHAgrsnHxONOlSA5hcVLd1B3p9utOt3QeDf6x2i1lqhTH2w8gzjvsnx13tWqg===\",\"rsaPublicKey\":\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCBv9K+jiuHqXIehX81oyNSD2RfVn+KTPb7NRT5HDPFE35CjZJd7Fu40r0U2Cp7Eyhayv/mRS6ZqvBT/8tQqwpUExTQQBbdZjfk+efb9bF9a+uCnAg0RsuqxeJ2r/rRTsORzVLJy+4GKcv06/p6CcBc5BI1gqSKmyyNBlgfkxLYewIDAQAB\",\"md5Key\":\"040f23510fbf4b34ae3895272e83c58c\",\"appid\":\"wxfa089da95020ba1a\",\"domain\":\"http://www-1.fuiou.com:28090\",\"ftpUrl\":\"ftp-1.fuiou.com\",\"ftpPort\":\"9021\",\"ftpUserName\":\"FTP999999\",\"ftpPassWord\":\"8A4GL0qVNd4RWhtK\",\"autoRateBase\":\"0.00\",\"manualRateBase\":\"0.00\",\"sn_fs\":\"X\"}";
        // fuyouConfig.setAppid("wxfa089da95020ba1a");
        System.out.println(JsonUtils.parseObject(json, AlipayConfig.class));
    }
    
}
